package huang.teamwork15;

import java.sql.SQLException;

public class UserService {
	public boolean login(User user) throws SQLException{
		boolean result =false;
		UserDao ud=new UserDao();
		User u =ud.selectUserbyName(user.getUsername());
		String pwd=u.getPwd();
		if(user.getPwd().equals(pwd)){
			result =true;
		}
		return result;
}
}
